﻿namespace LxCFD
{
    public struct MGFace
    {
        public MGFace(int[] fineFaces_O2N, int[] fineFaces_N2O, int oSideCell, int nSideCell)
        {
            this.OSideCell = oSideCell;
            this.NSideCell = nSideCell;
            this.FineFaces_O2N = fineFaces_O2N;
            this.FineFaces_N2O = fineFaces_N2O;
        }
        public int OSideCell;
        public int NSideCell;
        public int[] FineFaces_O2N;//粗面由细网格面组成，此处标识出细面中owner neighbor关系与粗面一致的面数
        public int[] FineFaces_N2O;

        public ONPair GetONCellID()
        {
            return new ONPair(OSideCell, NSideCell);
        }
    }
}

